package sjtu.ist.warehouse4ws.service;

import java.util.List;

import sjtu.ist.warehouse4ws.dao.RegistApplicationDao;
import sjtu.ist.warehouse4ws.model.RegistApplication;

public class RegistApplicationServiceImpl implements RegistApplicationService {
	RegistApplicationDao registApplicationDao;

	public void setRegistApplicationDao(RegistApplicationDao registApplicationDao) {
		this.registApplicationDao = registApplicationDao;
	}

	@Override
	public Integer save(RegistApplication ra) {
		// TODO Auto-generated method stub
		return registApplicationDao.save(ra);
	}

	@Override
	public void delete(Integer id) {
		// TODO Auto-generated method stub
		registApplicationDao.delete(id);
	}

	@Override
	public RegistApplication get(Integer id) {
		// TODO Auto-generated method stub
		return registApplicationDao.findById(id);
	}

	@Override
	public List<RegistApplication> getAll() {
		// TODO Auto-generated method stub
		return registApplicationDao.findAll();
	}

}
